package com.ruoyi.screeningDate.controller;

import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.education.domain.EducationInfo;
import com.ruoyi.fireRescueRank.domain.IfmFireRescueRank;
import com.ruoyi.firefighter.domain.DynamicInputVo1;
import com.ruoyi.firefighter.domain.FirefighterInfo;
import com.ruoyi.firefighter.domain.NameAndAge;
import com.ruoyi.firefighter.service.IFirefighterInfoService;
import com.ruoyi.firefighterFire.domain.FirefighterFire;
import com.ruoyi.firefighterFire.service.IFirefighterFireService;
import com.ruoyi.health.domain.HealthStatus;
import com.ruoyi.ifmPost.domain.IfmPost;
import com.ruoyi.ifmPost.service.IIfmPostService;
import com.ruoyi.job.domain.JobInfo;
import com.ruoyi.political.domain.PoliticalInfo;
import com.ruoyi.screeningDate.addomain.DynamicInputVo;
import com.ruoyi.screeningDate.addomain.IfmPostA;
import com.ruoyi.screeningDate.addomain.PostAccount;
import com.ruoyi.screeningDate.domain.*;
import com.ruoyi.screeningDate.service.MorescreeningdateService;
import com.ruoyi.screeningDate.service.PostAccountService;
import com.ruoyi.unit.domain.UnitInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.*;
import java.util.function.Function;
import java.util.stream.Collectors;

import static com.ruoyi.common.core.domain.AjaxResult.success;

@Anonymous
@RestController
@RequestMapping("/ifmPost/ifmPost")
public class PostAccountController {
    @Autowired
    private PostAccountService postAccountService;
    @Autowired
    private MorescreeningdateService morescreeningdateService;
    @Autowired
    private IFirefighterInfoService firefighterInfoService;
    @Autowired
    private IFirefighterFireService iFirefighterFireService;
    @Autowired
    private IIfmPostService iIfmPostService;
    /**
     * 根据工作岗位获取不同科目
     *
     * @param
     * @2024-11-5
     */
    @PostMapping("/ifmPostAndUserid")
    public AjaxResult analysisGraphicsT(@RequestBody IfmPost ifmPost){
        ArrayList<PerformanceA> performanceAS1 = new ArrayList<>();
         List<PostAccount>  postAccounts=  postAccountService.selectProgramNameAndUserId(ifmPost);
        HashSet<String> pName = new HashSet<>();
        HashSet<String> userId = new HashSet<>();
        for (PostAccount account : postAccounts) {
            pName.add(account.getProgramName());
            userId.add(account.getUserId());
        }
        //封装所有科目
        ArrayList<String> strings = new ArrayList<>();
        for (String s : pName) {
            strings.add(s) ;
        }
        ArrayList<PerformanceVo> performanceVos = new ArrayList<>();
        for (String s : userId) {
            PerformanceVo performanceVo = new PerformanceVo(null, null, null, null);
            FirefighterInfo firefighterInfo = firefighterInfoService.selectFirefighterInfoByUserId(Long.parseLong(s));
            performanceVo.setName(firefighterInfo.getName());
            performanceVo.setUserId(firefighterInfo.getUserId());
            ArrayList<PerformanceM> performanceMS = new ArrayList<>();
            Performance performance = new Performance();
            performance.setId(Long.parseLong(s));
            Map<String, String> stringStringMap = toUpperCaseList1(strings);
            for (Map.Entry<String, String> entry : stringStringMap.entrySet()) {
                performance.setOa(entry.getKey());
                performance.setOb(entry.getValue());
                List<PerformanceM> performanceM = morescreeningdateService.selectVoTneng1(performance);
                for (PerformanceM m : performanceM) {
                    performanceMS.add(m);
                }
            }
            for (PerformanceM t : performanceMS) {
                if (t.getRemark().equals("1")) {
                    t.setRemark("单兵项目");
                } else {
                    t.setRemark("班级项目");
                }
                String[] split = t.getEntryDate().split("-");
                t.setEntryDate(split[1]);
            }
            Map<List<Object>, PerformanceM> map = performanceMS.stream()
                    .collect(Collectors.toMap(
                            pm -> Arrays.asList(pm.getEntryDate(), pm.getProgramName()), // keyMapper，生成map的键
                            Function.identity(), // valueMapper，生成map的值
                            (existing, replacement) -> existing // mergeFunction，处理键冲突时保留哪个值
                    ));
            ArrayList<PerformanceM> uniquePerformanceMS = new ArrayList<>(map.values());
            performanceVo.setPerformanceMList(uniquePerformanceMS);
            performanceVos.add(performanceVo);
        }

        for (PerformanceVo vo : performanceVos) {
            if(vo.getPerformanceMList()!=null){
                for (PerformanceM m : vo.getPerformanceMList()) {
                    if (m!=null){
                        PerformanceA performanceA = new PerformanceA();
                        performanceA.setUserId(vo.getUserId());
                        performanceA.setName(vo.getName());
                        performanceA.setCategory(m.getRemark());
                        performanceA.setSubject(m.getProgramName());
                        if (m.getEntryDate().equals("01")){
                            performanceA.setJanuary(m.getFireProgram());
                            performanceA.setStr("01");
                        }else if(m.getEntryDate().equals("02")){
                            performanceA.setFebruary(m.getFireProgram());
                            performanceA.setStr("02");
                        } else if (m.getEntryDate().equals("03")) {
                            performanceA.setMarch(m.getFireProgram());
                            performanceA.setStr("03");
                        } else if (m.getEntryDate().equals("04")) {
                            performanceA.setApril(m.getFireProgram());
                            performanceA.setStr("04");
                        } else if (m.getEntryDate().equals("05")) {
                            performanceA.setMay(m.getFireProgram());
                            performanceA.setStr("05");
                        } else if (m.getEntryDate().equals("06")) {
                            performanceA.setJune(m.getFireProgram());
                            performanceA.setStr("06");
                        } else if (m.getEntryDate().equals("07")) {
                            performanceA.setJuly(m.getFireProgram());
                            performanceA.setStr("07");
                        } else if (m.getEntryDate().equals("08")) {
                            performanceA.setAugust(m.getFireProgram());
                            performanceA.setStr("08");
                        } else if (m.getEntryDate().equals("09")) {
                            performanceA.setSeptember(m.getFireProgram());
                            performanceA.setStr("09");
                        } else if (m.getEntryDate().equals("10")) {
                            performanceA.setOctober(m.getFireProgram());
                            performanceA.setStr("10");
                        } else if (m.getEntryDate().equals("11")) {
                            performanceA.setNovember(m.getFireProgram());
                            performanceA.setStr("11");
                        } else if (m.getEntryDate().equals("12")) {
                            performanceA.setDecember(m.getFireProgram());
                            performanceA.setStr("12");
                        }
                        performanceAS1.add(performanceA);
                    }
                }
            }
        }
        Set<PerformanceA> seenSubjects = new HashSet<>();
        for (PerformanceA a : performanceAS1) {
            String subject = a.getSubject();
            if (!seenSubjects.contains(subject)) {
                PerformanceA performanceA = new PerformanceA();
                performanceA.setSubject(subject);
                performanceA.setUserId(a.getUserId());
                performanceA.setName(a.getName());
                performanceA.setCategory(a.getCategory());
                seenSubjects.add(performanceA);
            }
        }
        //灭火数据
        ArrayList<PerformanceA> performanceAS1M = new ArrayList<>();
        //返回灭火数据
        ArrayList<PerformanceA> performanceAS2M = new ArrayList<>();
        for (PerformanceA a : performanceAS1) {
                performanceAS1M.add(a);

        }
        for (PerformanceA a : seenSubjects) {
                performanceAS2M.add(a);

        }

        for (PerformanceA a : performanceAS1M) {
            for (PerformanceA s : performanceAS2M) {
                if(a.getName().equals(s.getName())&&a.getSubject().equals(s.getSubject())){
                    if (a.getStr().equals("01")){
                        if (a.getSubject().equals("单一人三盘水带连接")){
                            s.setJanuary(a.getJanuary());
                        }else if(a.getSubject().equals("沿拉梯铺设水带")){
                            s.setJanuary(a.getJanuary());
                        }else if(a.getSubject().equals("垂直铺设水带")){
                            s.setJanuary(a.getJanuary());
                        }else if(a.getSubject().equals("狭小空间铺设水带")){
                            s.setJanuary(a.getJanuary());
                        }else if(a.getSubject().equals("吸水管连接")){
                            s.setJanuary(a.getJanuary());
                        }else if(a.getSubject().equals("射水技术")){
                            s.setJanuary(a.getJanuary());
                        }else if(a.getSubject().equals("攀登挂钩梯上四楼")){
                            s.setJanuary(a.getJanuary());
                        }else if(a.getSubject().equals("攀登单杠梯")){
                            s.setJanuary(a.getJanuary());
                        }else if(a.getSubject().equals("两人五盘水带连接")){
                            s.setJanuary(a.getJanuary());
                        }else if(a.getSubject().equals("干线水带更换")){
                            s.setJanuary(a.getJanuary());
                        }else if(a.getSubject().equals("楼层吊升水带")){
                            s.setJanuary(a.getJanuary());
                        }else if(a.getSubject().equals("水带登高伸长")){
                            s.setJanuary(a.getJanuary());
                        }else if(a.getSubject().equals("垂直更换水带")){
                            s.setJanuary(a.getJanuary());
                        }else if(a.getSubject().equals("水枪前延长水带")){
                            s.setJanuary(a.getJanuary());
                        }else if(a.getSubject().equals("分水器前延长水带")){
                            s.setJanuary(a.getJanuary());
                        }else if(a.getSubject().equals("三盘水带连接")){
                            s.setJanuary(a.getJanuary());
                        }else if(a.getSubject().equals("纵深灭火操")){
                            s.setJanuary(a.getJanuary());
                        }else if(a.getSubject().equals("车辆驾驶")){
                            s.setJanuary(a.getJanuary());
                        }else if(a.getSubject().equals("地下有限空间救援操")){
                            s.setJanuary(a.getJanuary());
                        }else if(a.getSubject().equals("百米障碍救助操")){
                            s.setJanuary(a.getJanuary());
                        }else if(a.getSubject().equals("信息综合查询操")){
                            s.setJanuary(a.getJanuary());
                        }else if(a.getSubject().equals("拉梯与钩梯联用操")){
                            s.setJanuary(a.getJanuary());
                        }else if(a.getSubject().equals("车辆操作")){
                            s.setJanuary(a.getJanuary());
                        }else if(a.getSubject().equals("十五米拉梯架设操")){
                            s.setJanuary(a.getJanuary());
                        }else if(a.getSubject().equals("枪炮协同操")){
                            s.setJanuary(a.getJanuary());
                        }else if(a.getSubject().equals("片图绘制")){
                            s.setJanuary(a.getJanuary());
                        }else if(a.getSubject().equals("60米肩梯架设操")){
                            s.setJanuary(a.getJanuary());
                        }else if(a.getSubject().equals("绳结制作操")){
                            s.setJanuary(a.getJanuary());
                        }else if(a.getSubject().equals("三盘水带连接操")){
                            s.setJanuary(a.getJanuary());
                        }else if(a.getSubject().equals("楼层火灾内攻操")){
                            s.setJanuary(a.getJanuary());
                        }else if(a.getSubject().equals("挂钩提上四楼")){
                            s.setJanuary(a.getJanuary());
                        }else if(a.getSubject().equals("车辆引导")){
                            s.setJanuary(a.getJanuary());
                        }else if(a.getSubject().equals("无人机侦察操")){
                            s.setJanuary(a.getJanuary());
                        } else if(a.getSubject().equals("地下有限空间救人操")){
                            s.setJanuary(a.getJanuary());
                        }else if(a.getSubject().equals("车载炮出水")){
                            s.setJanuary(a.getJanuary());
                        }else if(a.getSubject().equals("四节吸水管连接操")){
                            s.setJanuary(a.getJanuary());
                        }else if(a.getSubject().equals("顶撑救援操")){
                            s.setJanuary(a.getJanuary());
                        }else if(a.getSubject().equals("冰面救援技术")){
                            s.setJanuary(a.getJanuary());
                        }else if(a.getSubject().equals("快速出水操")){
                            s.setJanuary(a.getJanuary());
                        }else if(a.getSubject().equals("三人着装打靶操")){
                            s.setJanuary(a.getJanuary());
                        }else if(a.getSubject().equals("纵深灭火救人操")){
                            s.setJanuary(a.getJanuary());
                        } else if(a.getSubject().equals("防盗门（窗）破拆操")){
                            s.setJanuary(a.getJanuary());
                        }else if(a.getSubject().equals("3车6组建筑火灾初战扑救操")){
                            s.setJanuary(a.getJanuary());
                        }else if(a.getSubject().equals("8种常用绳结及7倍力以下倍力系统制作")){
                            s.setJanuary(a.getJanuary());
                        }
                    }else if(a.getStr().equals("02")){
                        if (a.getSubject().equals("单一人三盘水带连接")){
                            s.setFebruary(a.getFebruary());
                        }else if(a.getSubject().equals("沿拉梯铺设水带")){
                            s.setFebruary(a.getFebruary());
                        }else if(a.getSubject().equals("垂直铺设水带")){
                            s.setFebruary(a.getFebruary());
                        }else if(a.getSubject().equals("狭小空间铺设水带")){
                            s.setFebruary(a.getFebruary());
                        }else if(a.getSubject().equals("吸水管连接")){
                            s.setFebruary(a.getFebruary());
                        }else if(a.getSubject().equals("射水技术")){
                            s.setFebruary(a.getFebruary());
                        }else if(a.getSubject().equals("攀登挂钩梯上四楼")){
                            s.setFebruary(a.getFebruary());
                        }else if(a.getSubject().equals("攀登单杠梯")){
                            s.setFebruary(a.getFebruary());
                        }else if(a.getSubject().equals("两人五盘水带连接")){
                            s.setFebruary(a.getFebruary());
                        }else if(a.getSubject().equals("干线水带更换")){
                            s.setFebruary(a.getFebruary());
                        }else if(a.getSubject().equals("楼层吊升水带")){
                            s.setFebruary(a.getFebruary());
                        }else if(a.getSubject().equals("水带登高伸长")){
                            s.setFebruary(a.getFebruary());
                        }else if(a.getSubject().equals("垂直更换水带")){
                            s.setFebruary(a.getFebruary());
                        }else if(a.getSubject().equals("水枪前延长水带")){
                            s.setFebruary(a.getFebruary());
                        }else if(a.getSubject().equals("分水器前延长水带")){
                            s.setFebruary(a.getFebruary());
                        }else if(a.getSubject().equals("三盘水带连接")){
                            s.setFebruary(a.getFebruary());
                        }else if(a.getSubject().equals("纵深灭火操")){
                            s.setFebruary(a.getFebruary());
                        }else if(a.getSubject().equals("车辆驾驶")){
                            s.setFebruary(a.getFebruary());
                        }else if(a.getSubject().equals("地下有限空间救援操")){
                            s.setFebruary(a.getFebruary());
                        }else if(a.getSubject().equals("百米障碍救助操")){
                            s.setFebruary(a.getFebruary());
                        }else if(a.getSubject().equals("信息综合查询操")){
                            s.setFebruary(a.getFebruary());
                        }else if(a.getSubject().equals("拉梯与钩梯联用操")){
                            s.setFebruary(a.getFebruary());
                        }else if(a.getSubject().equals("车辆操作")){
                            s.setFebruary(a.getFebruary());
                        }else if(a.getSubject().equals("十五米拉梯架设操")){
                            s.setFebruary(a.getFebruary());
                        }else if(a.getSubject().equals("枪炮协同操")){
                            s.setFebruary(a.getFebruary());
                        }else if(a.getSubject().equals("片图绘制")){
                            s.setFebruary(a.getFebruary());
                        }else if(a.getSubject().equals("60米肩梯架设操")){
                            s.setFebruary(a.getFebruary());
                        }else if(a.getSubject().equals("绳结制作操")){
                            s.setFebruary(a.getFebruary());
                        }else if(a.getSubject().equals("三盘水带连接操")){
                            s.setFebruary(a.getFebruary());
                        }else if(a.getSubject().equals("楼层火灾内攻操")){
                            s.setFebruary(a.getFebruary());
                        }else if(a.getSubject().equals("挂钩提上四楼")){
                            s.setFebruary(a.getFebruary());
                        }else if(a.getSubject().equals("车辆引导")){
                            s.setFebruary(a.getFebruary());
                        }else if(a.getSubject().equals("无人机侦察操")){
                            s.setFebruary(a.getFebruary());
                        } else if(a.getSubject().equals("地下有限空间救人操")){
                            s.setFebruary(a.getFebruary());
                        }else if(a.getSubject().equals("车载炮出水")){
                            s.setFebruary(a.getFebruary());
                        }else if(a.getSubject().equals("四节吸水管连接操")){
                            s.setFebruary(a.getFebruary());
                        }else if(a.getSubject().equals("顶撑救援操")){
                            s.setFebruary(a.getFebruary());
                        }else if(a.getSubject().equals("冰面救援技术")){
                            s.setFebruary(a.getFebruary());
                        }else if(a.getSubject().equals("快速出水操")){
                            s.setFebruary(a.getFebruary());
                        }else if(a.getSubject().equals("三人着装打靶操")){
                            s.setFebruary(a.getFebruary());
                        }else if(a.getSubject().equals("纵深灭火救人操")){
                            s.setFebruary(a.getFebruary());
                        } else if(a.getSubject().equals("防盗门（窗）破拆操")){
                            s.setFebruary(a.getFebruary());
                        }else if(a.getSubject().equals("3车6组建筑火灾初战扑救操")){
                            s.setFebruary(a.getFebruary());
                        }else if(a.getSubject().equals("8种常用绳结及7倍力以下倍力系统制作")){
                            s.setFebruary(a.getFebruary());
                        }
                    }else if(a.getStr().equals("03")){
                        if (a.getSubject().equals("单一人三盘水带连接")){
                            s.setMarch(a.getMarch());
                        }else if(a.getSubject().equals("沿拉梯铺设水带")){
                            s.setMarch(a.getMarch());
                        }else if(a.getSubject().equals("垂直铺设水带")){
                            s.setMarch(a.getMarch());
                        }else if(a.getSubject().equals("狭小空间铺设水带")){
                            s.setMarch(a.getMarch());
                        }else if(a.getSubject().equals("吸水管连接")){
                            s.setMarch(a.getMarch());
                        }else if(a.getSubject().equals("射水技术")){
                            s.setMarch(a.getMarch());
                        }else if(a.getSubject().equals("攀登挂钩梯上四楼")){
                            s.setMarch(a.getMarch());
                        }else if(a.getSubject().equals("攀登单杠梯")){
                            s.setMarch(a.getMarch());
                        }else if(a.getSubject().equals("两人五盘水带连接")){
                            s.setMarch(a.getMarch());
                        }else if(a.getSubject().equals("干线水带更换")){
                            s.setMarch(a.getMarch());
                        }else if(a.getSubject().equals("楼层吊升水带")){
                            s.setMarch(a.getMarch());
                        }else if(a.getSubject().equals("水带登高伸长")){
                            s.setMarch(a.getMarch());
                        }else if(a.getSubject().equals("垂直更换水带")){
                            s.setMarch(a.getMarch());
                        }else if(a.getSubject().equals("水枪前延长水带")){
                            s.setMarch(a.getMarch());
                        }else if(a.getSubject().equals("分水器前延长水带")){
                            s.setMarch(a.getMarch());
                        }else if(a.getSubject().equals("三盘水带连接")){
                            s.setMarch(a.getMarch());
                        }else if(a.getSubject().equals("纵深灭火操")){
                            s.setMarch(a.getMarch());
                        }else if(a.getSubject().equals("车辆驾驶")){
                            s.setMarch(a.getMarch());
                        }else if(a.getSubject().equals("地下有限空间救援操")){
                            s.setMarch(a.getMarch());
                        }else if(a.getSubject().equals("百米障碍救助操")){
                            s.setMarch(a.getMarch());
                        }else if(a.getSubject().equals("信息综合查询操")){
                            s.setMarch(a.getMarch());
                        }else if(a.getSubject().equals("拉梯与钩梯联用操")){
                            s.setMarch(a.getMarch());
                        }else if(a.getSubject().equals("车辆操作")){
                            s.setMarch(a.getMarch());
                        }else if(a.getSubject().equals("十五米拉梯架设操")){
                            s.setMarch(a.getMarch());
                        }else if(a.getSubject().equals("枪炮协同操")){
                            s.setMarch(a.getMarch());
                        }else if(a.getSubject().equals("片图绘制")){
                            s.setMarch(a.getMarch());
                        }else if(a.getSubject().equals("60米肩梯架设操")){
                            s.setMarch(a.getMarch());
                        }else if(a.getSubject().equals("绳结制作操")){
                            s.setMarch(a.getMarch());
                        }else if(a.getSubject().equals("三盘水带连接操")){
                            s.setMarch(a.getMarch());
                        }else if(a.getSubject().equals("楼层火灾内攻操")){
                            s.setMarch(a.getMarch());
                        }else if(a.getSubject().equals("挂钩提上四楼")){
                            s.setMarch(a.getMarch());
                        }else if(a.getSubject().equals("车辆引导")){
                            s.setMarch(a.getMarch());
                        }else if(a.getSubject().equals("无人机侦察操")){
                            s.setMarch(a.getMarch());
                        } else if(a.getSubject().equals("地下有限空间救人操")){
                            s.setMarch(a.getMarch());
                        }else if(a.getSubject().equals("车载炮出水")){
                            s.setMarch(a.getMarch());
                        }else if(a.getSubject().equals("四节吸水管连接操")){
                            s.setMarch(a.getMarch());
                        }else if(a.getSubject().equals("顶撑救援操")){
                            s.setMarch(a.getMarch());
                        }else if(a.getSubject().equals("冰面救援技术")){
                            s.setMarch(a.getMarch());
                        }else if(a.getSubject().equals("快速出水操")){
                            s.setMarch(a.getMarch());
                        }else if(a.getSubject().equals("三人着装打靶操")){
                            s.setMarch(a.getMarch());
                        }else if(a.getSubject().equals("纵深灭火救人操")){
                            s.setMarch(a.getMarch());
                        } else if(a.getSubject().equals("防盗门（窗）破拆操")){
                            s.setMarch(a.getMarch());
                        }else if(a.getSubject().equals("3车6组建筑火灾初战扑救操")){
                            s.setMarch(a.getMarch());
                        }else if(a.getSubject().equals("8种常用绳结及7倍力以下倍力系统制作")){
                            s.setMarch(a.getMarch());
                        }
                    }else if(a.getStr().equals("04")){
                        if (a.getSubject().equals("单一人三盘水带连接")){
                            s.setApril(a.getApril());
                        }else if(a.getSubject().equals("沿拉梯铺设水带")){
                            s.setApril(a.getApril());
                        }else if(a.getSubject().equals("垂直铺设水带")){
                            s.setApril(a.getApril());
                        }else if(a.getSubject().equals("狭小空间铺设水带")){
                            s.setApril(a.getApril());
                        }else if(a.getSubject().equals("吸水管连接")){
                            s.setApril(a.getApril());
                        }else if(a.getSubject().equals("射水技术")){
                            s.setApril(a.getApril());
                        }else if(a.getSubject().equals("攀登挂钩梯上四楼")){
                            s.setApril(a.getApril());
                        }else if(a.getSubject().equals("攀登单杠梯")){
                            s.setApril(a.getApril());
                        }else if(a.getSubject().equals("两人五盘水带连接")){
                            s.setApril(a.getApril());
                        }else if(a.getSubject().equals("干线水带更换")){
                            s.setApril(a.getApril());
                        }else if(a.getSubject().equals("楼层吊升水带")){
                            s.setApril(a.getApril());
                        }else if(a.getSubject().equals("水带登高伸长")){
                            s.setApril(a.getApril());
                        }else if(a.getSubject().equals("垂直更换水带")){
                            s.setApril(a.getApril());
                        }else if(a.getSubject().equals("水枪前延长水带")){
                            s.setApril(a.getApril());
                        }else if(a.getSubject().equals("分水器前延长水带")){
                            s.setApril(a.getApril());
                        }else if(a.getSubject().equals("三盘水带连接")){
                            s.setApril(a.getApril());
                        }else if(a.getSubject().equals("纵深灭火操")){
                            s.setApril(a.getApril());
                        }else if(a.getSubject().equals("车辆驾驶")){
                            s.setApril(a.getApril());
                        }else if(a.getSubject().equals("地下有限空间救援操")){
                            s.setApril(a.getApril());
                        }else if(a.getSubject().equals("百米障碍救助操")){
                            s.setApril(a.getApril());
                        }else if(a.getSubject().equals("信息综合查询操")){
                            s.setApril(a.getApril());
                        }else if(a.getSubject().equals("拉梯与钩梯联用操")){
                            s.setApril(a.getApril());
                        }else if(a.getSubject().equals("车辆操作")){
                            s.setApril(a.getApril());
                        }else if(a.getSubject().equals("十五米拉梯架设操")){
                            s.setApril(a.getApril());
                        }else if(a.getSubject().equals("枪炮协同操")){
                            s.setApril(a.getApril());
                        }else if(a.getSubject().equals("片图绘制")){
                            s.setApril(a.getApril());
                        }else if(a.getSubject().equals("60米肩梯架设操")){
                            s.setApril(a.getApril());
                        }else if(a.getSubject().equals("绳结制作操")){
                            s.setApril(a.getApril());
                        }else if(a.getSubject().equals("三盘水带连接操")){
                            s.setApril(a.getApril());
                        }else if(a.getSubject().equals("楼层火灾内攻操")){
                            s.setApril(a.getApril());
                        }else if(a.getSubject().equals("挂钩提上四楼")){
                            s.setApril(a.getApril());
                        }else if(a.getSubject().equals("车辆引导")){
                            s.setApril(a.getApril());
                        }else if(a.getSubject().equals("无人机侦察操")){
                            s.setApril(a.getApril());
                        } else if(a.getSubject().equals("地下有限空间救人操")){
                            s.setApril(a.getApril());
                        }else if(a.getSubject().equals("车载炮出水")){
                            s.setApril(a.getApril());
                        }else if(a.getSubject().equals("四节吸水管连接操")){
                            s.setApril(a.getApril());
                        }else if(a.getSubject().equals("顶撑救援操")){
                            s.setApril(a.getApril());
                        }else if(a.getSubject().equals("冰面救援技术")){
                            s.setApril(a.getApril());
                        }else if(a.getSubject().equals("快速出水操")){
                            s.setApril(a.getApril());
                        }else if(a.getSubject().equals("三人着装打靶操")){
                            s.setApril(a.getApril());
                        }else if(a.getSubject().equals("纵深灭火救人操")){
                            s.setApril(a.getApril());
                        } else if(a.getSubject().equals("防盗门（窗）破拆操")){
                            s.setApril(a.getApril());
                        }else if(a.getSubject().equals("3车6组建筑火灾初战扑救操")){
                            s.setApril(a.getApril());
                        }else if(a.getSubject().equals("8种常用绳结及7倍力以下倍力系统制作")){
                            s.setApril(a.getApril());
                        }
                    }else if(a.getStr().equals("05")){
                        if (a.getSubject().equals("单一人三盘水带连接")){
                            s.setMay(a.getMay());
                        }else if(a.getSubject().equals("沿拉梯铺设水带")){
                            s.setMay(a.getMay());
                        }else if(a.getSubject().equals("垂直铺设水带")){
                            s.setMay(a.getMay());
                        }else if(a.getSubject().equals("狭小空间铺设水带")){
                            s.setMay(a.getMay());
                        }else if(a.getSubject().equals("吸水管连接")){
                            s.setMay(a.getMay());
                        }else if(a.getSubject().equals("射水技术")){
                            s.setMay(a.getMay());
                        }else if(a.getSubject().equals("攀登挂钩梯上四楼")){
                            s.setMay(a.getMay());
                        }else if(a.getSubject().equals("攀登单杠梯")){
                            s.setMay(a.getMay());
                        }else if(a.getSubject().equals("两人五盘水带连接")){
                            s.setMay(a.getMay());
                        }else if(a.getSubject().equals("干线水带更换")){
                            s.setMay(a.getMay());
                        }else if(a.getSubject().equals("楼层吊升水带")){
                            s.setMay(a.getMay());
                        }else if(a.getSubject().equals("水带登高伸长")){
                            s.setMay(a.getMay());
                        }else if(a.getSubject().equals("垂直更换水带")){
                            s.setMay(a.getMay());
                        }else if(a.getSubject().equals("水枪前延长水带")){
                            s.setMay(a.getMay());
                        }else if(a.getSubject().equals("分水器前延长水带")){
                            s.setMay(a.getMay());
                        }else if(a.getSubject().equals("三盘水带连接")){
                            s.setMay(a.getMay());
                        }else if(a.getSubject().equals("纵深灭火操")){
                            s.setMay(a.getMay());
                        }else if(a.getSubject().equals("车辆驾驶")){
                            s.setMay(a.getMay());
                        }else if(a.getSubject().equals("地下有限空间救援操")){
                            s.setMay(a.getMay());
                        }else if(a.getSubject().equals("百米障碍救助操")){
                            s.setMay(a.getMay());
                        }else if(a.getSubject().equals("信息综合查询操")){
                            s.setMay(a.getMay());
                        }else if(a.getSubject().equals("拉梯与钩梯联用操")){
                            s.setMay(a.getMay());
                        }else if(a.getSubject().equals("车辆操作")){
                            s.setMay(a.getMay());
                        }else if(a.getSubject().equals("十五米拉梯架设操")){
                            s.setMay(a.getMay());
                        }else if(a.getSubject().equals("枪炮协同操")){
                            s.setMay(a.getMay());
                        }else if(a.getSubject().equals("片图绘制")){
                            s.setMay(a.getMay());
                        }else if(a.getSubject().equals("60米肩梯架设操")){
                            s.setMay(a.getMay());
                        }else if(a.getSubject().equals("绳结制作操")){
                            s.setMay(a.getMay());
                        }else if(a.getSubject().equals("三盘水带连接操")){
                            s.setMay(a.getMay());
                        }else if(a.getSubject().equals("楼层火灾内攻操")){
                            s.setMay(a.getMay());
                        }else if(a.getSubject().equals("挂钩提上四楼")){
                            s.setMay(a.getMay());
                        }else if(a.getSubject().equals("车辆引导")){
                            s.setMay(a.getMay());
                        }else if(a.getSubject().equals("无人机侦察操")){
                            s.setMay(a.getMay());
                        } else if(a.getSubject().equals("地下有限空间救人操")){
                            s.setMay(a.getMay());
                        }else if(a.getSubject().equals("车载炮出水")){
                            s.setMay(a.getMay());
                        }else if(a.getSubject().equals("四节吸水管连接操")){
                            s.setMay(a.getMay());
                        }else if(a.getSubject().equals("顶撑救援操")){
                            s.setMay(a.getMay());
                        }else if(a.getSubject().equals("冰面救援技术")){
                            s.setMay(a.getMay());
                        }else if(a.getSubject().equals("快速出水操")){
                            s.setMay(a.getMay());
                        }else if(a.getSubject().equals("三人着装打靶操")){
                            s.setMay(a.getMay());
                        }else if(a.getSubject().equals("纵深灭火救人操")){
                            s.setMay(a.getMay());
                        } else if(a.getSubject().equals("防盗门（窗）破拆操")){
                            s.setMay(a.getMay());
                        }else if(a.getSubject().equals("3车6组建筑火灾初战扑救操")){
                            s.setMay(a.getMay());
                        }else if(a.getSubject().equals("8种常用绳结及7倍力以下倍力系统制作")){
                            s.setMay(a.getMay());
                        }
                    }else if(a.getStr().equals("06")){
                        if (a.getSubject().equals("单一人三盘水带连接")){
                            s.setJune(a.getJune());
                        }else if(a.getSubject().equals("沿拉梯铺设水带")){
                            s.setJune(a.getJune());
                        }else if(a.getSubject().equals("垂直铺设水带")){
                            s.setJune(a.getJune());
                        }else if(a.getSubject().equals("狭小空间铺设水带")){
                            s.setJune(a.getJune());
                        }else if(a.getSubject().equals("吸水管连接")){
                            s.setJune(a.getJune());
                        }else if(a.getSubject().equals("射水技术")){
                            s.setJune(a.getJune());
                        }else if(a.getSubject().equals("攀登挂钩梯上四楼")){
                            s.setJune(a.getJune());
                        }else if(a.getSubject().equals("攀登单杠梯")){
                            s.setJune(a.getJune());
                        }else if(a.getSubject().equals("两人五盘水带连接")){
                            s.setJune(a.getJune());
                        }else if(a.getSubject().equals("干线水带更换")){
                            s.setJune(a.getJune());
                        }else if(a.getSubject().equals("楼层吊升水带")){
                            s.setJune(a.getJune());
                        }else if(a.getSubject().equals("水带登高伸长")){
                            s.setJune(a.getJune());
                        }else if(a.getSubject().equals("垂直更换水带")){
                            s.setJune(a.getJune());
                        }else if(a.getSubject().equals("水枪前延长水带")){
                            s.setJune(a.getJune());
                        }else if(a.getSubject().equals("分水器前延长水带")){
                            s.setJune(a.getJune());
                        }else if(a.getSubject().equals("三盘水带连接")){
                            s.setJune(a.getJune());
                        }else if(a.getSubject().equals("纵深灭火操")){
                            s.setJune(a.getJune());
                        }else if(a.getSubject().equals("车辆驾驶")){
                            s.setJune(a.getJune());
                        }else if(a.getSubject().equals("地下有限空间救援操")){
                            s.setJune(a.getJune());
                        }else if(a.getSubject().equals("百米障碍救助操")){
                            s.setJune(a.getJune());
                        }else if(a.getSubject().equals("信息综合查询操")){
                            s.setJune(a.getJune());
                        }else if(a.getSubject().equals("拉梯与钩梯联用操")){
                            s.setJune(a.getJune());
                        }else if(a.getSubject().equals("车辆操作")){
                            s.setJune(a.getJune());
                        }else if(a.getSubject().equals("十五米拉梯架设操")){
                            s.setJune(a.getJune());
                        }else if(a.getSubject().equals("枪炮协同操")){
                            s.setJune(a.getJune());
                        }else if(a.getSubject().equals("片图绘制")){
                            s.setJune(a.getJune());
                        }else if(a.getSubject().equals("60米肩梯架设操")){
                            s.setJune(a.getJune());
                        }else if(a.getSubject().equals("绳结制作操")){
                            s.setJune(a.getJune());
                        }else if(a.getSubject().equals("三盘水带连接操")){
                            s.setJune(a.getJune());
                        }else if(a.getSubject().equals("楼层火灾内攻操")){
                            s.setJune(a.getJune());
                        }else if(a.getSubject().equals("挂钩提上四楼")){
                            s.setJune(a.getJune());
                        }else if(a.getSubject().equals("车辆引导")){
                            s.setJune(a.getJune());
                        }else if(a.getSubject().equals("无人机侦察操")){
                            s.setJune(a.getJune());
                        } else if(a.getSubject().equals("地下有限空间救人操")){
                            s.setJune(a.getJune());
                        }else if(a.getSubject().equals("车载炮出水")){
                            s.setJune(a.getJune());
                        }else if(a.getSubject().equals("四节吸水管连接操")){
                            s.setJune(a.getJune());
                        }else if(a.getSubject().equals("顶撑救援操")){
                            s.setJune(a.getJune());
                        }else if(a.getSubject().equals("冰面救援技术")){
                            s.setJune(a.getJune());
                        }else if(a.getSubject().equals("快速出水操")){
                            s.setJune(a.getJune());
                        }else if(a.getSubject().equals("三人着装打靶操")){
                            s.setJune(a.getJune());
                        }else if(a.getSubject().equals("纵深灭火救人操")){
                            s.setJune(a.getJune());
                        } else if(a.getSubject().equals("防盗门（窗）破拆操")){
                            s.setJune(a.getJune());
                        }else if(a.getSubject().equals("3车6组建筑火灾初战扑救操")){
                            s.setJune(a.getJune());
                        }else if(a.getSubject().equals("8种常用绳结及7倍力以下倍力系统制作")){
                            s.setJune(a.getJune());
                        }
                    }else if(a.getStr().equals("07")){
                        if (a.getSubject().equals("单一人三盘水带连接")){
                            s.setJuly(a.getJuly());
                        }else if(a.getSubject().equals("沿拉梯铺设水带")){
                            s.setJuly(a.getJuly());
                        }else if(a.getSubject().equals("垂直铺设水带")){
                            s.setJuly(a.getJuly());
                        }else if(a.getSubject().equals("狭小空间铺设水带")){
                            s.setJuly(a.getJuly());
                        }else if(a.getSubject().equals("吸水管连接")){
                            s.setJuly(a.getJuly());
                        }else if(a.getSubject().equals("射水技术")){
                            s.setJuly(a.getJuly());
                        }else if(a.getSubject().equals("攀登挂钩梯上四楼")){
                            s.setJuly(a.getJuly());
                        }else if(a.getSubject().equals("攀登单杠梯")){
                            s.setJuly(a.getJuly());
                        }else if(a.getSubject().equals("两人五盘水带连接")){
                            s.setJuly(a.getJuly());
                        }else if(a.getSubject().equals("干线水带更换")){
                            s.setJuly(a.getJuly());
                        }else if(a.getSubject().equals("楼层吊升水带")){
                            s.setJuly(a.getJuly());
                        }else if(a.getSubject().equals("水带登高伸长")){
                            s.setJuly(a.getJuly());
                        }else if(a.getSubject().equals("垂直更换水带")){
                            s.setJuly(a.getJuly());
                        }else if(a.getSubject().equals("水枪前延长水带")){
                            s.setJuly(a.getJuly());
                        }else if(a.getSubject().equals("分水器前延长水带")){
                            s.setJuly(a.getJuly());
                        }else if(a.getSubject().equals("三盘水带连接")){
                            s.setJuly(a.getJuly());
                        }else if(a.getSubject().equals("纵深灭火操")){
                            s.setJuly(a.getJuly());
                        }else if(a.getSubject().equals("车辆驾驶")){
                            s.setJuly(a.getJuly());
                        }else if(a.getSubject().equals("地下有限空间救援操")){
                            s.setJuly(a.getJuly());
                        }else if(a.getSubject().equals("百米障碍救助操")){
                            s.setJuly(a.getJuly());
                        }else if(a.getSubject().equals("信息综合查询操")){
                            s.setJuly(a.getJuly());
                        }else if(a.getSubject().equals("拉梯与钩梯联用操")){
                            s.setJuly(a.getJuly());
                        }else if(a.getSubject().equals("车辆操作")){
                            s.setJuly(a.getJuly());
                        }else if(a.getSubject().equals("十五米拉梯架设操")){
                            s.setJuly(a.getJuly());
                        }else if(a.getSubject().equals("枪炮协同操")){
                            s.setJuly(a.getJuly());
                        }else if(a.getSubject().equals("片图绘制")){
                            s.setJuly(a.getJuly());
                        }else if(a.getSubject().equals("60米肩梯架设操")){
                            s.setJuly(a.getJuly());
                        }else if(a.getSubject().equals("绳结制作操")){
                            s.setJuly(a.getJuly());
                        }else if(a.getSubject().equals("三盘水带连接操")){
                            s.setJuly(a.getJuly());
                        }else if(a.getSubject().equals("楼层火灾内攻操")){
                            s.setJuly(a.getJuly());
                        }else if(a.getSubject().equals("挂钩提上四楼")){
                            s.setJuly(a.getJuly());
                        }else if(a.getSubject().equals("车辆引导")){
                            s.setJuly(a.getJuly());
                        }else if(a.getSubject().equals("无人机侦察操")){
                            s.setJuly(a.getJuly());
                        } else if(a.getSubject().equals("地下有限空间救人操")){
                            s.setJuly(a.getJuly());
                        }else if(a.getSubject().equals("车载炮出水")){
                            s.setJuly(a.getJuly());
                        }else if(a.getSubject().equals("四节吸水管连接操")){
                            s.setJuly(a.getJuly());
                        }else if(a.getSubject().equals("顶撑救援操")){
                            s.setJuly(a.getJuly());
                        }else if(a.getSubject().equals("冰面救援技术")){
                            s.setJuly(a.getJuly());
                        }else if(a.getSubject().equals("快速出水操")){
                            s.setJuly(a.getJuly());
                        }else if(a.getSubject().equals("三人着装打靶操")){
                            s.setJuly(a.getJuly());
                        }else if(a.getSubject().equals("纵深灭火救人操")){
                            s.setJuly(a.getJuly());
                        } else if(a.getSubject().equals("防盗门（窗）破拆操")){
                            s.setJuly(a.getJuly());
                        }else if(a.getSubject().equals("3车6组建筑火灾初战扑救操")){
                            s.setJuly(a.getJuly());
                        }else if(a.getSubject().equals("8种常用绳结及7倍力以下倍力系统制作")){
                            s.setJuly(a.getJuly());
                        }
                    }else if(a.getStr().equals("08")){
                        if (a.getSubject().equals("单一人三盘水带连接")){
                            s.setAugust(a.getAugust());
                        }else if(a.getSubject().equals("沿拉梯铺设水带")){
                            s.setAugust(a.getAugust());
                        }else if(a.getSubject().equals("垂直铺设水带")){
                            s.setAugust(a.getAugust());
                        }else if(a.getSubject().equals("狭小空间铺设水带")){
                            s.setAugust(a.getAugust());
                        }else if(a.getSubject().equals("吸水管连接")){
                            s.setAugust(a.getAugust());
                        }else if(a.getSubject().equals("射水技术")){
                            s.setAugust(a.getAugust());
                        }else if(a.getSubject().equals("攀登挂钩梯上四楼")){
                            s.setAugust(a.getAugust());
                        }else if(a.getSubject().equals("攀登单杠梯")){
                            s.setAugust(a.getAugust());
                        }else if(a.getSubject().equals("两人五盘水带连接")){
                            s.setAugust(a.getAugust());
                        }else if(a.getSubject().equals("干线水带更换")){
                            s.setAugust(a.getAugust());
                        }else if(a.getSubject().equals("楼层吊升水带")){
                            s.setAugust(a.getAugust());
                        }else if(a.getSubject().equals("水带登高伸长")){
                            s.setAugust(a.getAugust());
                        }else if(a.getSubject().equals("垂直更换水带")){
                            s.setAugust(a.getAugust());
                        }else if(a.getSubject().equals("水枪前延长水带")){
                            s.setAugust(a.getAugust());
                        }else if(a.getSubject().equals("分水器前延长水带")){
                            s.setAugust(a.getAugust());
                        }else if(a.getSubject().equals("三盘水带连接")){
                            s.setAugust(a.getAugust());
                        }else if(a.getSubject().equals("纵深灭火操")){
                            s.setAugust(a.getAugust());
                        }else if(a.getSubject().equals("车辆驾驶")){
                            s.setAugust(a.getAugust());
                        }else if(a.getSubject().equals("地下有限空间救援操")){
                            s.setAugust(a.getAugust());
                        }else if(a.getSubject().equals("百米障碍救助操")){
                            s.setAugust(a.getAugust());
                        }else if(a.getSubject().equals("信息综合查询操")){
                            s.setAugust(a.getAugust());
                        }else if(a.getSubject().equals("拉梯与钩梯联用操")){
                            s.setAugust(a.getAugust());
                        }else if(a.getSubject().equals("车辆操作")){
                            s.setAugust(a.getAugust());
                        }else if(a.getSubject().equals("十五米拉梯架设操")){
                            s.setAugust(a.getAugust());
                        }else if(a.getSubject().equals("枪炮协同操")){
                            s.setAugust(a.getAugust());
                        }else if(a.getSubject().equals("片图绘制")){
                            s.setAugust(a.getAugust());
                        }else if(a.getSubject().equals("60米肩梯架设操")){
                            s.setAugust(a.getAugust());
                        }else if(a.getSubject().equals("绳结制作操")){
                            s.setAugust(a.getAugust());
                        }else if(a.getSubject().equals("三盘水带连接操")){
                            s.setAugust(a.getAugust());
                        }else if(a.getSubject().equals("楼层火灾内攻操")){
                            s.setAugust(a.getAugust());
                        }else if(a.getSubject().equals("挂钩提上四楼")){
                            s.setAugust(a.getAugust());
                        }else if(a.getSubject().equals("车辆引导")){
                            s.setAugust(a.getAugust());
                        }else if(a.getSubject().equals("无人机侦察操")){
                            s.setAugust(a.getAugust());
                        } else if(a.getSubject().equals("地下有限空间救人操")){
                            s.setAugust(a.getAugust());
                        }else if(a.getSubject().equals("车载炮出水")){
                            s.setAugust(a.getAugust());
                        }else if(a.getSubject().equals("四节吸水管连接操")){
                            s.setAugust(a.getAugust());
                        }else if(a.getSubject().equals("顶撑救援操")){
                            s.setAugust(a.getAugust());
                        }else if(a.getSubject().equals("冰面救援技术")){
                            s.setAugust(a.getAugust());
                        }else if(a.getSubject().equals("快速出水操")){
                            s.setAugust(a.getAugust());
                        }else if(a.getSubject().equals("三人着装打靶操")){
                            s.setAugust(a.getAugust());
                        }else if(a.getSubject().equals("纵深灭火救人操")){
                            s.setAugust(a.getAugust());
                        } else if(a.getSubject().equals("防盗门（窗）破拆操")){
                            s.setAugust(a.getAugust());
                        }else if(a.getSubject().equals("3车6组建筑火灾初战扑救操")){
                            s.setAugust(a.getAugust());
                        }else if(a.getSubject().equals("8种常用绳结及7倍力以下倍力系统制作")){
                            s.setAugust(a.getAugust());
                        }
                    }else if(a.getStr().equals("09")){
                        if (a.getSubject().equals("单一人三盘水带连接")){
                            s.setSeptember(a.getSeptember());
                        }else if(a.getSubject().equals("沿拉梯铺设水带")){
                            s.setSeptember(a.getSeptember());
                        }else if(a.getSubject().equals("垂直铺设水带")){
                            s.setSeptember(a.getSeptember());
                        }else if(a.getSubject().equals("狭小空间铺设水带")){
                            s.setSeptember(a.getSeptember());
                        }else if(a.getSubject().equals("吸水管连接")){
                            s.setSeptember(a.getSeptember());
                        }else if(a.getSubject().equals("射水技术")){
                            s.setSeptember(a.getSeptember());
                        }else if(a.getSubject().equals("攀登挂钩梯上四楼")){
                            s.setSeptember(a.getSeptember());
                        }else if(a.getSubject().equals("攀登单杠梯")){
                            s.setSeptember(a.getSeptember());
                        }else if(a.getSubject().equals("两人五盘水带连接")){
                            s.setSeptember(a.getSeptember());
                        }else if(a.getSubject().equals("干线水带更换")){
                            s.setSeptember(a.getSeptember());
                        }else if(a.getSubject().equals("楼层吊升水带")){
                            s.setSeptember(a.getSeptember());
                        }else if(a.getSubject().equals("水带登高伸长")){
                            s.setSeptember(a.getSeptember());
                        }else if(a.getSubject().equals("垂直更换水带")){
                            s.setSeptember(a.getSeptember());
                        }else if(a.getSubject().equals("水枪前延长水带")){
                            s.setSeptember(a.getSeptember());
                        }else if(a.getSubject().equals("分水器前延长水带")){
                            s.setSeptember(a.getSeptember());
                        }else if(a.getSubject().equals("三盘水带连接")){
                            s.setSeptember(a.getSeptember());
                        }else if(a.getSubject().equals("纵深灭火操")){
                            s.setSeptember(a.getSeptember());
                        }else if(a.getSubject().equals("车辆驾驶")){
                            s.setSeptember(a.getSeptember());
                        }else if(a.getSubject().equals("地下有限空间救援操")){
                            s.setSeptember(a.getSeptember());
                        }else if(a.getSubject().equals("百米障碍救助操")){
                            s.setSeptember(a.getSeptember());
                        }else if(a.getSubject().equals("信息综合查询操")){
                            s.setSeptember(a.getSeptember());
                        }else if(a.getSubject().equals("拉梯与钩梯联用操")){
                            s.setSeptember(a.getSeptember());
                        }else if(a.getSubject().equals("车辆操作")){
                            s.setSeptember(a.getSeptember());
                        }else if(a.getSubject().equals("十五米拉梯架设操")){
                            s.setSeptember(a.getSeptember());
                        }else if(a.getSubject().equals("枪炮协同操")){
                            s.setSeptember(a.getSeptember());
                        }else if(a.getSubject().equals("片图绘制")){
                            s.setSeptember(a.getSeptember());
                        }else if(a.getSubject().equals("60米肩梯架设操")){
                            s.setSeptember(a.getSeptember());
                        }else if(a.getSubject().equals("绳结制作操")){
                            s.setSeptember(a.getSeptember());
                        }else if(a.getSubject().equals("三盘水带连接操")){
                            s.setSeptember(a.getSeptember());
                        }else if(a.getSubject().equals("楼层火灾内攻操")){
                            s.setSeptember(a.getSeptember());
                        }else if(a.getSubject().equals("挂钩提上四楼")){
                            s.setSeptember(a.getSeptember());
                        }else if(a.getSubject().equals("车辆引导")){
                            s.setSeptember(a.getSeptember());
                        }else if(a.getSubject().equals("无人机侦察操")){
                            s.setSeptember(a.getSeptember());
                        } else if(a.getSubject().equals("地下有限空间救人操")){
                            s.setSeptember(a.getSeptember());
                        }else if(a.getSubject().equals("车载炮出水")){
                            s.setSeptember(a.getSeptember());
                        }else if(a.getSubject().equals("四节吸水管连接操")){
                            s.setSeptember(a.getSeptember());
                        }else if(a.getSubject().equals("顶撑救援操")){
                            s.setSeptember(a.getSeptember());
                        }else if(a.getSubject().equals("冰面救援技术")){
                            s.setSeptember(a.getSeptember());
                        }else if(a.getSubject().equals("快速出水操")){
                            s.setSeptember(a.getSeptember());
                        }else if(a.getSubject().equals("三人着装打靶操")){
                            s.setSeptember(a.getSeptember());
                        }else if(a.getSubject().equals("纵深灭火救人操")){
                            s.setSeptember(a.getSeptember());
                        } else if(a.getSubject().equals("防盗门（窗）破拆操")){
                            s.setSeptember(a.getSeptember());
                        }else if(a.getSubject().equals("3车6组建筑火灾初战扑救操")){
                            s.setSeptember(a.getSeptember());
                        }else if(a.getSubject().equals("8种常用绳结及7倍力以下倍力系统制作")){
                            s.setSeptember(a.getSeptember());
                        }
                    }else if(a.getStr().equals("10")){
                        if (a.getSubject().equals("单一人三盘水带连接")){
                            s.setOctober(a.getOctober());
                        }else if(a.getSubject().equals("沿拉梯铺设水带")){
                            s.setOctober(a.getOctober());
                        }else if(a.getSubject().equals("垂直铺设水带")){
                            s.setOctober(a.getOctober());
                        }else if(a.getSubject().equals("狭小空间铺设水带")){
                            s.setOctober(a.getOctober());
                        }else if(a.getSubject().equals("吸水管连接")){
                            s.setOctober(a.getOctober());
                        }else if(a.getSubject().equals("射水技术")){
                            s.setOctober(a.getOctober());
                        }else if(a.getSubject().equals("攀登挂钩梯上四楼")){
                            s.setOctober(a.getOctober());
                        }else if(a.getSubject().equals("攀登单杠梯")){
                            s.setOctober(a.getOctober());
                        }else if(a.getSubject().equals("两人五盘水带连接")){
                            s.setOctober(a.getOctober());
                        }else if(a.getSubject().equals("干线水带更换")){
                            s.setOctober(a.getOctober());
                        }else if(a.getSubject().equals("楼层吊升水带")){
                            s.setOctober(a.getOctober());
                        }else if(a.getSubject().equals("水带登高伸长")){
                            s.setOctober(a.getOctober());
                        }else if(a.getSubject().equals("垂直更换水带")){
                            s.setOctober(a.getOctober());
                        }else if(a.getSubject().equals("水枪前延长水带")){
                            s.setOctober(a.getOctober());
                        }else if(a.getSubject().equals("分水器前延长水带")){
                            s.setOctober(a.getOctober());
                        }else if(a.getSubject().equals("三盘水带连接")){
                            s.setOctober(a.getOctober());
                        }else if(a.getSubject().equals("纵深灭火操")){
                            s.setOctober(a.getOctober());
                        }else if(a.getSubject().equals("车辆驾驶")){
                            s.setOctober(a.getOctober());
                        }else if(a.getSubject().equals("地下有限空间救援操")){
                            s.setOctober(a.getOctober());
                        }else if(a.getSubject().equals("百米障碍救助操")){
                            s.setOctober(a.getOctober());
                        }else if(a.getSubject().equals("信息综合查询操")){
                            s.setOctober(a.getOctober());
                        }else if(a.getSubject().equals("拉梯与钩梯联用操")){
                            s.setOctober(a.getOctober());
                        }else if(a.getSubject().equals("车辆操作")){
                            s.setOctober(a.getOctober());
                        }else if(a.getSubject().equals("十五米拉梯架设操")){
                            s.setOctober(a.getOctober());
                        }else if(a.getSubject().equals("枪炮协同操")){
                            s.setOctober(a.getOctober());
                        }else if(a.getSubject().equals("片图绘制")){
                            s.setOctober(a.getOctober());
                        }else if(a.getSubject().equals("60米肩梯架设操")){
                            s.setOctober(a.getOctober());
                        }else if(a.getSubject().equals("绳结制作操")){
                            s.setOctober(a.getOctober());
                        }else if(a.getSubject().equals("三盘水带连接操")){
                            s.setOctober(a.getOctober());
                        }else if(a.getSubject().equals("楼层火灾内攻操")){
                            s.setOctober(a.getOctober());
                        }else if(a.getSubject().equals("挂钩提上四楼")){
                            s.setOctober(a.getOctober());
                        }else if(a.getSubject().equals("车辆引导")){
                            s.setOctober(a.getOctober());
                        }else if(a.getSubject().equals("无人机侦察操")){
                            s.setOctober(a.getOctober());
                        } else if(a.getSubject().equals("地下有限空间救人操")){
                            s.setOctober(a.getOctober());
                        }else if(a.getSubject().equals("车载炮出水")){
                            s.setOctober(a.getOctober());
                        }else if(a.getSubject().equals("四节吸水管连接操")){
                            s.setOctober(a.getOctober());
                        }else if(a.getSubject().equals("顶撑救援操")){
                            s.setOctober(a.getOctober());
                        }else if(a.getSubject().equals("冰面救援技术")){
                            s.setOctober(a.getOctober());
                        }else if(a.getSubject().equals("快速出水操")){
                            s.setOctober(a.getOctober());
                        }else if(a.getSubject().equals("三人着装打靶操")){
                            s.setOctober(a.getOctober());
                        }else if(a.getSubject().equals("纵深灭火救人操")){
                            s.setOctober(a.getOctober());
                        } else if(a.getSubject().equals("防盗门（窗）破拆操")){
                            s.setOctober(a.getOctober());
                        }else if(a.getSubject().equals("3车6组建筑火灾初战扑救操")){
                            s.setOctober(a.getOctober());
                        }else if(a.getSubject().equals("8种常用绳结及7倍力以下倍力系统制作")){
                            s.setOctober(a.getOctober());
                        }
                    }else if(a.getStr().equals("11")){
                        if (a.getSubject().equals("单一人三盘水带连接")){
                            s.setNovember(a.getNovember());
                        }else if(a.getSubject().equals("沿拉梯铺设水带")){
                            s.setNovember(a.getNovember());
                        }else if(a.getSubject().equals("垂直铺设水带")){
                            s.setNovember(a.getNovember());
                        }else if(a.getSubject().equals("狭小空间铺设水带")){
                            s.setNovember(a.getNovember());
                        }else if(a.getSubject().equals("吸水管连接")){
                            s.setNovember(a.getNovember());
                        }else if(a.getSubject().equals("射水技术")){
                            s.setNovember(a.getNovember());
                        }else if(a.getSubject().equals("攀登挂钩梯上四楼")){
                            s.setNovember(a.getNovember());
                        }else if(a.getSubject().equals("攀登单杠梯")){
                            s.setNovember(a.getNovember());
                        }else if(a.getSubject().equals("两人五盘水带连接")){
                            s.setNovember(a.getNovember());
                        }else if(a.getSubject().equals("干线水带更换")){
                            s.setNovember(a.getNovember());
                        }else if(a.getSubject().equals("楼层吊升水带")){
                            s.setNovember(a.getNovember());
                        }else if(a.getSubject().equals("水带登高伸长")){
                            s.setNovember(a.getNovember());
                        }else if(a.getSubject().equals("垂直更换水带")){
                            s.setNovember(a.getNovember());
                        }else if(a.getSubject().equals("水枪前延长水带")){
                            s.setNovember(a.getNovember());
                        }else if(a.getSubject().equals("分水器前延长水带")){
                            s.setNovember(a.getNovember());
                        }else if(a.getSubject().equals("三盘水带连接")){
                            s.setNovember(a.getNovember());
                        }else if(a.getSubject().equals("纵深灭火操")){
                            s.setNovember(a.getNovember());
                        }else if(a.getSubject().equals("车辆驾驶")){
                            s.setNovember(a.getNovember());
                        }else if(a.getSubject().equals("地下有限空间救援操")){
                            s.setNovember(a.getNovember());
                        }else if(a.getSubject().equals("百米障碍救助操")){
                            s.setNovember(a.getNovember());
                        }else if(a.getSubject().equals("信息综合查询操")){
                            s.setNovember(a.getNovember());
                        }else if(a.getSubject().equals("拉梯与钩梯联用操")){
                            s.setNovember(a.getNovember());
                        }else if(a.getSubject().equals("车辆操作")){
                            s.setNovember(a.getNovember());
                        }else if(a.getSubject().equals("十五米拉梯架设操")){
                            s.setNovember(a.getNovember());
                        }else if(a.getSubject().equals("枪炮协同操")){
                            s.setNovember(a.getNovember());
                        }else if(a.getSubject().equals("片图绘制")){
                            s.setNovember(a.getNovember());
                        }else if(a.getSubject().equals("60米肩梯架设操")){
                            s.setNovember(a.getNovember());
                        }else if(a.getSubject().equals("绳结制作操")){
                            s.setNovember(a.getNovember());
                        }else if(a.getSubject().equals("三盘水带连接操")){
                            s.setNovember(a.getNovember());
                        }else if(a.getSubject().equals("楼层火灾内攻操")){
                            s.setNovember(a.getNovember());
                        }else if(a.getSubject().equals("挂钩提上四楼")){
                            s.setNovember(a.getNovember());
                        }else if(a.getSubject().equals("车辆引导")){
                            s.setNovember(a.getNovember());
                        }else if(a.getSubject().equals("无人机侦察操")){
                            s.setNovember(a.getNovember());
                        } else if(a.getSubject().equals("地下有限空间救人操")){
                            s.setNovember(a.getNovember());
                        }else if(a.getSubject().equals("车载炮出水")){
                            s.setNovember(a.getNovember());
                        }else if(a.getSubject().equals("四节吸水管连接操")){
                            s.setNovember(a.getNovember());
                        }else if(a.getSubject().equals("顶撑救援操")){
                            s.setNovember(a.getNovember());
                        }else if(a.getSubject().equals("冰面救援技术")){
                            s.setNovember(a.getNovember());
                        }else if(a.getSubject().equals("快速出水操")){
                            s.setNovember(a.getNovember());
                        }else if(a.getSubject().equals("三人着装打靶操")){
                            s.setNovember(a.getNovember());
                        }else if(a.getSubject().equals("纵深灭火救人操")){
                            s.setNovember(a.getNovember());
                        } else if(a.getSubject().equals("防盗门（窗）破拆操")){
                            s.setNovember(a.getNovember());
                        }else if(a.getSubject().equals("3车6组建筑火灾初战扑救操")){
                            s.setNovember(a.getNovember());
                        }else if(a.getSubject().equals("8种常用绳结及7倍力以下倍力系统制作")){
                            s.setNovember(a.getNovember());
                        }
                    }else if(a.getStr().equals("12")){
                        if (a.getSubject().equals("单一人三盘水带连接")){
                            s.setNovember(a.getDecember());
                        }else if(a.getSubject().equals("沿拉梯铺设水带")){
                            s.setDecember(a.getDecember());
                        }else if(a.getSubject().equals("垂直铺设水带")){
                            s.setDecember(a.getDecember());
                        }else if(a.getSubject().equals("狭小空间铺设水带")){
                            s.setDecember(a.getDecember());
                        }else if(a.getSubject().equals("吸水管连接")){
                            s.setDecember(a.getDecember());
                        }else if(a.getSubject().equals("射水技术")){
                            s.setDecember(a.getDecember());
                        }else if(a.getSubject().equals("攀登挂钩梯上四楼")){
                            s.setDecember(a.getDecember());
                        }else if(a.getSubject().equals("攀登单杠梯")){
                            s.setDecember(a.getDecember());
                        }else if(a.getSubject().equals("两人五盘水带连接")){
                            s.setDecember(a.getDecember());
                        }else if(a.getSubject().equals("干线水带更换")){
                            s.setDecember(a.getDecember());
                        }else if(a.getSubject().equals("楼层吊升水带")){
                            s.setDecember(a.getDecember());
                        }else if(a.getSubject().equals("水带登高伸长")){
                            s.setDecember(a.getDecember());
                        }else if(a.getSubject().equals("垂直更换水带")){
                            s.setDecember(a.getDecember());
                        }else if(a.getSubject().equals("水枪前延长水带")){
                            s.setDecember(a.getDecember());
                        }else if(a.getSubject().equals("分水器前延长水带")){
                            s.setDecember(a.getDecember());
                        } else if(a.getSubject().equals("三盘水带连接")){
                            s.setDecember(a.getDecember());
                        }else if(a.getSubject().equals("纵深灭火操")){
                            s.setDecember(a.getDecember());
                        }else if(a.getSubject().equals("车辆驾驶")){
                            s.setDecember(a.getDecember());
                        }else if(a.getSubject().equals("地下有限空间救援操")){
                            s.setDecember(a.getDecember());
                        }else if(a.getSubject().equals("百米障碍救助操")){
                            s.setDecember(a.getDecember());
                        }else if(a.getSubject().equals("信息综合查询操")){
                            s.setDecember(a.getDecember());
                        }else if(a.getSubject().equals("拉梯与钩梯联用操")){
                            s.setDecember(a.getDecember());
                        }else if(a.getSubject().equals("车辆操作")){
                            s.setDecember(a.getDecember());
                        }else if(a.getSubject().equals("十五米拉梯架设操")){
                            s.setDecember(a.getDecember());
                        }else if(a.getSubject().equals("枪炮协同操")){
                            s.setDecember(a.getDecember());
                        }else if(a.getSubject().equals("片图绘制")){
                            s.setDecember(a.getDecember());
                        }else if(a.getSubject().equals("60米肩梯架设操")){
                            s.setDecember(a.getDecember());
                        }else if(a.getSubject().equals("绳结制作操")){
                            s.setDecember(a.getDecember());
                        }else if(a.getSubject().equals("三盘水带连接操")){
                            s.setDecember(a.getDecember());
                        }else if(a.getSubject().equals("楼层火灾内攻操")){
                            s.setDecember(a.getDecember());
                        }else if(a.getSubject().equals("挂钩提上四楼")){
                            s.setDecember(a.getDecember());
                        }else if(a.getSubject().equals("车辆引导")){
                            s.setDecember(a.getDecember());
                        }else if(a.getSubject().equals("无人机侦察操")){
                            s.setDecember(a.getDecember());
                        } else if(a.getSubject().equals("地下有限空间救人操")){
                            s.setDecember(a.getDecember());
                        }else if(a.getSubject().equals("车载炮出水")){
                            s.setDecember(a.getDecember());
                        }else if(a.getSubject().equals("四节吸水管连接操")){
                            s.setDecember(a.getDecember());
                        }else if(a.getSubject().equals("顶撑救援操")){
                            s.setDecember(a.getDecember());
                        }else if(a.getSubject().equals("冰面救援技术")){
                            s.setDecember(a.getDecember());
                        }else if(a.getSubject().equals("快速出水操")){
                            s.setDecember(a.getDecember());
                        }else if(a.getSubject().equals("三人着装打靶操")){
                            s.setDecember(a.getDecember());
                        }else if(a.getSubject().equals("纵深灭火救人操")){
                            s.setDecember(a.getDecember());
                        } else if(a.getSubject().equals("防盗门（窗）破拆操")){
                            s.setDecember(a.getDecember());
                        }else if(a.getSubject().equals("3车6组建筑火灾初战扑救操")){
                            s.setDecember(a.getDecember());
                        }else if(a.getSubject().equals("8种常用绳结及7倍力以下倍力系统制作")){
                            s.setDecember(a.getDecember());
                        }
                    }
                }
            }
        }
        return success(performanceAS2M);
    }
    public static Map<String, String> toUpperCaseList1(List<String> inputList) {
        Map<String, String> trainingProgramMap = new HashMap<>();
        for (String str : inputList) {
            if (str.equals("单一人三盘水带连接")) {
                trainingProgramMap.put("单一人三盘水带连接", "c2.fire_program");
            } else if (str.equals("沿拉梯铺设水带")) {
                trainingProgramMap.put("沿拉梯铺设水带", "c2.fire_program1");
            } else if (str.equals("垂直铺设水带")) {
                trainingProgramMap.put("垂直铺设水带", "c2.fire_program2");
            } else if (str.equals("狭小空间铺设水带")) {
                trainingProgramMap.put("狭小空间铺设水带", "c2.fire_program3");
            } else if (str.equals("吸水管连接")) {
                trainingProgramMap.put("射水技术", "c2.fire_program4");
            } else if (str.equals("射水技术")) {
                trainingProgramMap.put("射水技术", "c2.fire_program5");
            } else if (str.equals("攀登挂钩梯上四楼")) {
                trainingProgramMap.put("攀登挂钩梯上四楼", "c2.fire_program6");
            } else if (str.equals("攀登单杠梯")) {
                trainingProgramMap.put("攀登单杠梯", "c2.fire_program7");
            } else if (str.equals("两人五盘水带连接")) {
                trainingProgramMap.put("两人五盘水带连接", "c2.fire_program8");
            } else if (str.equals("干线水带更换")) {
                trainingProgramMap.put("干线水带更换", "c2.fire_program9");
            } else if (str.equals("楼层吊升水带")) {
                trainingProgramMap.put("楼层吊升水带", "c2.fire_program10");
            } else if (str.equals("水带登高伸长")) {
                trainingProgramMap.put("水带登高伸长", "c2.fire_program11");
            } else if (str.equals("垂直更换水带")) {
                trainingProgramMap.put("垂直更换水带", "c2.fire_program12");
            } else if (str.equals("水枪前延长水带")) {
                trainingProgramMap.put("水枪前延长水带", "c2.fire_program13");
            } else if (str.equals("分水器前延长水带")) {
                trainingProgramMap.put("分水器前延长水带", "c2.fire_program14");
            }else if (str.equals("三盘水带连接")) {
                trainingProgramMap.put("三盘水带连接", "c2.fire_program15");
            }else if (str.equals("纵深灭火操")) {
                trainingProgramMap.put("纵深灭火操", "c2.fire_program16");
            }else if (str.equals("车辆驾驶")) {
                trainingProgramMap.put("车辆驾驶", "c2.fire_program17");
            }else if (str.equals("地下有限空间救援操")) {
                trainingProgramMap.put("地下有限空间救援操", "c2.fire_program18");
            }else if (str.equals("百米障碍救助操")) {
                trainingProgramMap.put("百米障碍救助操", "c2.fire_program19");
            }else if (str.equals("信息综合查询操")) {
                trainingProgramMap.put("信息综合查询操", "c2.fire_program20");
            }else if (str.equals("拉梯与钩梯联用操")) {
                trainingProgramMap.put("拉梯与钩梯联用操", "c2.fire_program21");
            }else if (str.equals("车辆操作")) {
                trainingProgramMap.put("车辆操作", "c2.fire_program22");
            }else if (str.equals("十五米拉梯架设操")) {
                trainingProgramMap.put("十五米拉梯架设操", "c2.fire_program23");
            }else if (str.equals("枪炮协同操")) {
                trainingProgramMap.put("枪炮协同操", "c2.fire_program24");
            }else if (str.equals("片图绘制")) {
                trainingProgramMap.put("片图绘制", "c2.fire_program25");
            }else if (str.equals("60米肩梯架设操")) {
                trainingProgramMap.put("60米肩梯架设操", "c2.fire_program26");
            }else if (str.equals("绳结制作操")) {
                trainingProgramMap.put("绳结制作操", "c2.fire_program27");
            }else if (str.equals("三盘水带连接操")) {
                trainingProgramMap.put("三盘水带连接操", "c2.fire_program28");
            }else if (str.equals("楼层火灾内攻操")) {
                trainingProgramMap.put("楼层火灾内攻操", "c2.fire_program29");
            }else if (str.equals("挂钩提上四楼")) {
                trainingProgramMap.put("挂钩提上四楼", "c2.fire_program30");
            }else if (str.equals("车辆引导")) {
                trainingProgramMap.put("车辆引导", "c2.fire_program31");
            }else if (str.equals("无人机侦察操")) {
                trainingProgramMap.put("无人机侦察操", "c2.fire_program32");
            }else if (str.equals("地下有限空间救人操")) {
                trainingProgramMap.put("地下有限空间救人操", "c2.fire_program33");
            }else if (str.equals("车载炮出水")) {
                trainingProgramMap.put("车载炮出水", "c2.fire_program34");
            }else if (str.equals("四节吸水管连接操")) {
                trainingProgramMap.put("四节吸水管连接操", "c2.fire_program35");
            }else if (str.equals("顶撑救援操")) {
                trainingProgramMap.put("顶撑救援操", "c2.fire_program36");
            }else if (str.equals("冰面救援技术")) {
                trainingProgramMap.put("冰面救援技术", "c2.fire_program37");
            }else if (str.equals("快速出水操")) {
                trainingProgramMap.put("快速出水操", "c2.fire_program38");
            }else if (str.equals("三人着装打靶操")) {
                trainingProgramMap.put("三人着装打靶操", "c2.fire_program39");
            }else if (str.equals("纵深灭火救人操")) {
                trainingProgramMap.put("纵深灭火救人操", "c2.fire_program40");
            }else if (str.equals("防盗门（窗）破拆操")) {
                trainingProgramMap.put("防盗门（窗）破拆操", "c2.fire_program41");
            }else if (str.equals("3车6组建筑火灾初战扑救操")) {
                trainingProgramMap.put("3车6组建筑火灾初战扑救操", "c2.fire_program42");
            }else if (str.equals("8种常用绳结及7倍力以下倍力系统制作")) {
                trainingProgramMap.put("8种常用绳结及7倍力以下倍力系统制作", "c2.fire_program43");
            }
        }
        return trainingProgramMap;
    }
    public static String toUpperCaseList(String str) {
        if (str.equals("单一人三盘水带连接")) {
            return "fire_program";
        } else if (str.equals("沿拉梯铺设水带")) {
            return "fire_program1";
        } else if (str.equals("垂直铺设水带")) {
            return "fire_program2";
        } else if (str.equals("狭小空间铺设水带")) {
            return "fire_program3";
        } else if (str.equals("吸水管连接")) {
            return "fire_program4";
        } else if (str.equals("射水技术")) {
            return "fire_program5";
        } else if (str.equals("攀登挂钩梯上四楼")) {
            return "fire_program6";
        } else if (str.equals("攀登单杠梯")) {
            return "fire_program7";
        } else if (str.equals("两人五盘水带连接")) {
            return "fire_program8";
        } else if (str.equals("干线水带更换")) {
            return "fire_program9";
        } else if (str.equals("楼层吊升水带")) {
            return "fire_program10";
        } else if (str.equals("水带登高伸长")) {
            return "fire_program11";
        } else if (str.equals("垂直更换水带")) {
            return "fire_program12";
        } else if (str.equals("水枪前延长水带")) {
            return "fire_program13";
        } else if (str.equals("分水器前延长水带")) {
            return "fire_program14";
        } else if (str.equals("三盘水带连接")) {
            return "fire_program15";
        } else if (str.equals("纵深灭火操")) {
            return "fire_program16";
        } else if (str.equals("车辆驾驶")) {
            return "fire_program17";
        } else if (str.equals("地下有限空间救援操")) {
            return "fire_program18";
        } else if (str.equals("百米障碍救助操")) {
            return "fire_program19";
        } else if (str.equals("信息综合查询操")) {
            return "fire_program20";
        } else if (str.equals("拉梯与钩梯联用操")) {
            return "fire_program21";
        } else if (str.equals("车辆操作")) {
            return "fire_program22";
        } else if (str.equals("十五米拉梯架设操")) {
            return "fire_program23";
        } else if (str.equals("枪炮协同操")) {
            return "fire_program24";
        } else if (str.equals("片图绘制")) {
            return "fire_program25";
        } else if (str.equals("60米肩梯架设操")) {
            return "fire_program26";
        } else if (str.equals("绳结制作操")) {
            return "fire_program27";
        } else if (str.equals("三盘水带连接操")) {
            return "fire_program28";
        } else if (str.equals("楼层火灾内攻操")) {
            return "fire_program29";
        } else if (str.equals("挂钩提上四楼")) {
            return "fire_program30";
        } else if (str.equals("车辆引导")) {
            return "fire_program31";
        } else if (str.equals("无人机侦察操")) {
            return "fire_program32";
        } else if (str.equals("地下有限空间救人操")) {
            return "fire_program33";
        } else if (str.equals("车载炮出水")) {
            return "fire_program34";
        } else if (str.equals("四节吸水管连接操")) {
            return "fire_program35";
        } else if (str.equals("顶撑救援操")) {
            return "fire_program36";
        } else if (str.equals("冰面救援技术")) {
            return "fire_program37";
        } else if (str.equals("快速出水操")) {
            return "fire_program38";
        } else if (str.equals("三人着装打靶操")) {
            return "fire_program39";
        } else if (str.equals("纵深灭火救人操")) {
            return "fire_program40";
        } else if (str.equals("防盗门（窗）破拆操")) {
            return "fire_program41";
        } else if (str.equals("3车6组建筑火灾初战扑救操")) {
            return "fire_program42";
        } else if (str.equals("8种常用绳结及7倍力以下倍力系统制作")) {
            return "fire_program43";
        }
        return "";
    }
    /**  岗位对应科目
     *
     * @param
     * @2024-11-5
     */
    @PostMapping("/ifmPostAndKe")
    public AjaxResult ifmPostAndKe(@RequestBody IfmPost ifmPost)    {
        List<IfmPostA>  ifmPostAS =postAccountService.selectPostNameAndProgramName(ifmPost);
        return success(ifmPostAS);
    }
    /**  addIfmPost 添加
     *
     * @param
     * @2024-11-19
     */
    @PostMapping("/addIfmPost")
    public AjaxResult addIfmPost(@RequestBody IfmPostA ifmPost)    {
        FirefighterFire firefighterFire = new FirefighterFire();
        firefighterFire.setProgramName(ifmPost.getProgramName());
        FirefighterFire a =   iFirefighterFireService.selectFirefighterFireList1(firefighterFire);
        Long id = a.getId();
        ifmPost.setFireId(id);
        IfmPost ifmPost1 = new IfmPost();
        ifmPost1.setPostName(ifmPost.getPostName());
        IfmPost b=   iIfmPostService.selectIfmPostList1(ifmPost1);
        Long postId = b.getPostId();
        ifmPost.setPostId(postId);

        postAccountService.addPostNameAndProgramName(ifmPost);
        return success("OK");
    }
    /**  updateIfmPost 修改
     *
     * @param
     * @2024-11-19
     */
    @PostMapping("/updateIfmPost")
    public AjaxResult updateIfmPost(@RequestBody IfmPostA ifmPost)    {
        FirefighterFire firefighterFire = new FirefighterFire();
        firefighterFire.setProgramName(ifmPost.getProgramName());
        FirefighterFire a =   iFirefighterFireService.selectFirefighterFireList1(firefighterFire);
        ifmPost.setFireId(a.getId());

        IfmPost ifmPost1 = new IfmPost();
        ifmPost1.setPostName(ifmPost.getPostName());
        IfmPost b=   iIfmPostService.selectIfmPostList1(ifmPost1);
        ifmPost.setPostId(b.getPostId());
        postAccountService.updatePostNameAndProgramName(ifmPost);
        return success("OK");
    }
    /**  delete 删除
     *
     * @param
     * @2024-11-19
     */
    @PostMapping("/deleteIfmPost")
    public AjaxResult deleteIfmPost(@RequestBody IfmPostA ifmPost)    {
    postAccountService.deletetPostNameAndProgramName(ifmPost);
        return success("OK");
    }
    /**  查询灭火科目
     *
     * @param
     * @2024-11-19
     */
    @GetMapping("/free")
    public AjaxResult selectFree()  {
        List<FirefighterFire> firefighterFires = iFirefighterFireService.selectFirefighterFireList(new FirefighterFire());
        return success(firefighterFires);
    }
    /**
     * 根据消防员证件号获取输入的科目
     * @param
     * @2024-11-19
     */
    @PostMapping("/dynamicInput")
    public AjaxResult dynamicInput(@RequestBody FirefighterInfo ifmPost) {
        DynamicInputVo1 dynamicInputVo1 = new DynamicInputVo1();
        List<DynamicInputVo> dynamicInputVo =postAccountService.dynamicInput(ifmPost);
        for (DynamicInputVo vo : dynamicInputVo) {
            String programName = vo.getProgramName();
            String s = toUpperCaseList(programName);
            vo.setPosition(s);
        }
        FirefighterInfo a = firefighterInfoService.selectFirefighterInfoBySfz(ifmPost);
        NameAndAge nameAndAge = new NameAndAge();
        nameAndAge.setAge(a.getAge());
        nameAndAge.setName(a.getName());
        nameAndAge.setSex(a.getGender());
        dynamicInputVo1.setDynamicInputVos(dynamicInputVo);
        dynamicInputVo1.setNameAndAge(nameAndAge);
        return success(dynamicInputVo1);
    }
}
